import random
import time
import numpy as np

a=[]
for i in range(90000000):
    a.append(random.random())
time2 = time.time()
sum1=sum(a)
print(time.time()-time2)#0.15650153160095215
b=np.array(a)

time1= time.time()
sum2=np.sum(b)
print(time.time()-time1)#0.04718947410583496